<?php
error_reporting(0);
include("../include/os.php");
include("../config/common.php");
include("../config/conn.php");
$i=rand(1,40);
$cishu=rand(1,10000);
$hurl = $_SERVER['HTTP_REFERER'];//来源;
$wangzhi = $_SERVER['SERVER_NAME'];
$userid=$_COOKIE[uid];
if($userid==null){
    echo "<script>location.href='login.php'</script>";
    exit;
}else{
    $pay = $_GET['pay'];
     if($pay==1){
         $title = '微信充值';
     }else{
         $title = '支付宝充值';
     }
    $hyzf="where id='1'";
    $zf=queryall(se2zf,$hyzf);
    $zhifu=$zf[zhifu];
    $alipay=$zf[alipay];
    $weixin=$zf[weixin];

    ?>
    <!DOCTYPE html>
    <html>
    <head>
        <title>会员中心-<?=$title?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
        <meta name="format-detection" content="telephone=no">
        <SCRIPT language=javascript src="/app/layer/jquery-1.9.1.min.js"></SCRIPT>
        <SCRIPT language=javascript src="/app/layer/layer.js"></SCRIPT>
        <?php if ($zhifu==5){?>
            <script type="text/javascript">
                $(document).ready(function()
                {
                    $("#pay label").click(function()
                    {
                        var id=$(this).attr('id');
                        document.getElementById('fee').value=id;
                    });
                });
            </script>
        <?php }?>
        <?php include_once('../include/css.php'); ?>
        <style>
            .open_vip{
                background-color: lightcyan;;
            }
            .ui-border li i em{
                font-size: 0.75rem;
            }
            .aboutpic li{
                margin-top: 0.6rem
            }
            .aboutpic li i img{
                width: 2.5rem;
                height: 2.5rem;
            }

            .qx {color: #999;}

        </style>
    </head>
    <body>
    <div id="head" >
        <div class="fixtop">
            <span id="home"><a href="/" rel="external"><i class="ico08"><img src="/img/homepage.png" width="30px" /></i></a></span>
            <span id="index"><i class="ico07"><img src="/img/logo.png" width="88px" class="h" /></i></span><i class="ico21"><?=$title?></i>
            <span id="find"><i class="ico08"><img src="/img/ss1.png" width="29px" /></i></span>
        </div>
        <?php include_once('../include/column.php'); ?>
        <div id="nav" class="view currents out">
            <div id="search-box">
                <form method="get" action="/vod_list.php" data-ajax="false" id="search-form">
                    <div class="box-search">
                        <span class="icon-search icon"></span>
                        <input x-webkit-speech type="text"  placeholder="请输入视频关键字" autocomplete="off" value="" name="k" id="k"/>
                    </div>
                    <div class="search_submit"><button type="submit" >
                            <i class="ico01"></i>搜索
                        </button>
                    </div>
                </form>
            </div>
            <?php include_once('../include/nav_s.php'); ?>
        </div>
    </div>
    <header id="header" class="ui-header ui-header-positive ui-border-b" >
        <h1><?php if($user[ms]=="黄金会员"){?>黄金会员<?php }elseif($user[ms]=="永久会员"){?>钻石会员<?php }?></h1>
    </header>
    <section class="jilu" style=" margin-top:46px;">

    </section>
    <div style="display:none"><iframe id="msgubotj" name="msgubotj" width=0 height=0></iframe></div>
    <section class="jilu" style="margin-top: 2.2%;">
            <table width="100%" border="0" cellpadding="5" cellspacing="5">
                <tbody>
                    <tr>
                        <td  height="50" align="center"><strong><?php if($pay==1){echo "微信客服";}elseif ($pay==2){echo "支付宝客服";}else{ echo '客服中心';}?></strong></td>
                    </tr>
                    <tr>
                        <td  height="15" align="center"><img id="ewm" width="149" height="149" src="<?php if($pay==1){echo "/".$weixin;} else{echo "/".$alipay;}?>"></td>
                    </tr>
                    <tr>

                    </tr>
                    <tr>
                        <td  height="30" align="center" style="color:#FF0000;font-size:14px;">扫描二维码 / 长按图片保存后加好友联系客服<input name="qdfk" type="hidden" value="1"><input name="pid" type="hidden" value="<?php echo $pid?>"><input name="url" type="hidden" value="<?php echo $url;?>"></td>
                    </tr>
                    <tr>
                    </tr>

                </tbody></table>
    </section>
    <script type="text/javascript">
        window.setInterval(run, 880000);
        function run(){
            $.get("pay_ajax.php?act=check_weixinpay_notify",function(data){
                if(data!="1"){
                    location.href=data;
                }
            });
        }
    </script>
    <?php include_once('../include/foot.php'); ?>
    <?php include_once('user_bottom.php'); ?>
    </body>
    </html>
<?php }?>